//
//  RequestEngine.h
//  iStore
//
//  Created by MacDev on 15/4/21.
//  Copyright (c) 2015年 mirrtalk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperationManager.h"
//#import "VoiceConverter.h"


@interface RequestEngine : NSObject

+(AFHTTPRequestOperationManager *)getManager;
////+4用户注册
+(void)userRegWithPhoneDic:(NSDictionary *)dic completed:(void(^)(NSString * errorcode,NSString *result))complete;
////+1登录
+(void)userLoginWithDic:(NSDictionary *)dic completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
///已投放
//+ (void) queryReleasedSumWithDic:(NSDictionary *)dic completed:(void(^)(NSString *errorcode))complete;

// 查询投放的广告
// 投放中
+ (void)releaseADWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
// 已完成
+ (void)finishADWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
// 撤销订单
+ (void)queryCancelADWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
// 确定订单撤销
+ (void)cancelADWithDic:(NSDictionary *)dict completed:(void (^)(NSString *, NSDictionary *))complete;


// 已回收
+ (void)takeBackADWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;




//支付宝充值
+(void)userAliPayWithDic:(NSDictionary *)dic completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
//支付宝成功回调
+(void)userAppNotifyWithDic:(NSDictionary *)dic completed:(void (^)(NSString *, NSDictionary *))complete;
//微信充值
//+(void)userWechatPayWithDic:(NSDictionary *)dic completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;


//验证码
+ (void) verificationCodeWith:(NSDictionary *)dict
                    completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;



//找回密码
+ (void) reSetPassWordWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;

//个人资料填写
+ (void) userUpdateWithDic:(NSDictionary *)dict imageArray:(NSArray*)imageArray completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
// 修改密码
+ (void) changePassWordWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;

//支付并保存广告
+(void)payAndInsertADWithDic:(NSDictionary *)dict completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
//店铺信息注册
+ (void) shopShopRegWithDic:(NSDictionary *)dict imageArray:(UIImage*)image completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
//网络数据请求
+ (void) RequestEngineWithDic:(NSDictionary *)dict URL:(NSString *)url completed:(void(^)(NSString * errorcode,NSDictionary *resultDict))complete;
@end
